Deprescribing algorithm